package com.stone.upms.upms.controller;

import com.stone.upms.upms.commons.AjaxResult;
import com.stone.upms.upms.domain.User;
import com.stone.upms.upms.dto.UserDto;
import io.swagger.annotations.*;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/user")
@Api(value = "User", description = "用户Controller", tags = "User")
public class UserController {

    @PostMapping(value = "/addOrEdit")
    @ApiOperation(value = "添加用户", notes = "新增用户信息。", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiResponses({@ApiResponse(code = 200, message = "JSON对象，retcode属性值为1，则添加成功，否则后台报错，通过retmsg查看报错原因。")})
    public AjaxResult addUser(UserDto user) {
        //TODO
        return new AjaxResult();
    }

}
